package com.cz.fra.android.entity;

import android.content.ContentValues;

import com.cz.fra.android.data.FishReport.Picture;

public class Image {

	private String imagePath;
	
	private int reportId;
	
	private int userId;
	
	private String uploadDate;

	private String binaryPic;
	
	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public int getReportId() {
		return reportId;
	}

	public void setReportId(int reportId) {
		this.reportId = reportId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUploadDate() {
		return uploadDate;
	}

	public void setUploadDate(String uploadDate) {
		this.uploadDate = uploadDate;
	}
	
	public ContentValues instanceToCV(){
		ContentValues cv = new ContentValues();
		cv.put(Picture.PICTURE_URL, imagePath);
		cv.put(Picture.REPORT_ID, reportId);
		cv.put(Picture.USER_ID, userId);
		cv.put(Picture.PICTURE_DATA, binaryPic);
		return cv;
	}

	public String getBinaryPic() {
		return binaryPic;
	}

	public void setBinaryPic(String binaryPic) {
		this.binaryPic = binaryPic;
	}
}
